package com.ruoyi.cat.domain.DTO;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.cat.domain.AdTicketImage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class TicketOrderDTO {

    @ApiModelProperty("订单id")
    private Long id;

    @ApiModelProperty("票id")
    private Long ticketId;
    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("0代付款 1待使用 2退款售后 3交易已完成  4 退款完成")
    private Integer state;

    @ApiModelProperty("票单价")
    private BigDecimal price;

    @ApiModelProperty("折扣率")
    private BigDecimal discountedPrice;

    @ApiModelProperty("有效期结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date validEndDate;

    @ApiModelProperty("有效期开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date validStartDate;

    @ApiModelProperty("订单创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("1原路放回 2退至钱包")
    private String refundWay;

    @ApiModelProperty("用户昵称")
    private String userName;

    @ApiModelProperty("用户手机号")
    private String phone;

    @ApiModelProperty("退款原因")
    private String refundReason;

    @ApiModelProperty("退款金额")
    private Long quantity;

    @ApiModelProperty("订单编号")
    private String orderCode;

    @ApiModelProperty("标题")
    private String ticketRollTitle;

    @ApiModelProperty("核销码")
    private String verificationCode;

    private List<AdTicketImage> ticketImageList;

}
